<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dolby Vision Content Editing for Third-Party Developers: OpenGLContext Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="dlb_stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Dolby Vision Content Editing for Third-Party Developers
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('a00068.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="a00065.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">OpenGLContext Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for OpenGLContext:</div>
<div class="dyncontent">
<div class="center"><img src="a00066.png" border="0" usemap="#a_open_g_l_context_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a968cf2168ec4c19054e456c59831a5c5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#a968cf2168ec4c19054e456c59831a5c5">OpenGLContext</a> ()</td></tr>
<tr class="separator:a968cf2168ec4c19054e456c59831a5c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb3c1a51ce0e979ac3fc0aec7ce1a915"><td class="memItemLeft" align="right" valign="top">Handler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#afb3c1a51ce0e979ac3fc0aec7ce1a915">getImage</a> ()</td></tr>
<tr class="separator:afb3c1a51ce0e979ac3fc0aec7ce1a915"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa95af2319ce76698314c6bced3927b82"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#aa95af2319ce76698314c6bced3927b82">eglInit</a> ()</td></tr>
<tr class="separator:aa95af2319ce76698314c6bced3927b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf666bed1def7419d656c61176b0885d"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#aaf666bed1def7419d656c61176b0885d">processFrame</a> (HardwareBuffer inbuf, HardwareBuffer opbuf)</td></tr>
<tr class="separator:aaf666bed1def7419d656c61176b0885d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2806dc3e1a2e39d0ac2287b164c69bdd"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#a2806dc3e1a2e39d0ac2287b164c69bdd">EditShadersInit</a> (int output_width, int output_height, int color_standard, int input_colorspace, int output_colorspace)</td></tr>
<tr class="separator:a2806dc3e1a2e39d0ac2287b164c69bdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e7550be96e542914927735c6021310"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#a66e7550be96e542914927735c6021310">EditShadersRelease</a> ()</td></tr>
<tr class="separator:a66e7550be96e542914927735c6021310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeee1b868be694de63220cbaa71677715"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#aeee1b868be694de63220cbaa71677715">EditShadersEnableLut</a> (int enable)</td></tr>
<tr class="separator:aeee1b868be694de63220cbaa71677715"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac09ad09d208b0de4bc3bc09c5076920d"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#ac09ad09d208b0de4bc3bc09c5076920d">EditShadersSetParameter</a> (int parameter, float val)</td></tr>
<tr class="separator:ac09ad09d208b0de4bc3bc09c5076920d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7af59c2ab92372b59d2542ee23b2243"><td class="memItemLeft" align="right" valign="top">static native float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#ad7af59c2ab92372b59d2542ee23b2243">EditShadersGetParameter</a> (int parameter)</td></tr>
<tr class="separator:ad7af59c2ab92372b59d2542ee23b2243"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e2925788da723aee15e26cfe5c4713"><td class="memItemLeft" align="right" valign="top">static native int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#a65e2925788da723aee15e26cfe5c4713">EditShadersSetCompositingImage</a> (byte[] data)</td></tr>
<tr class="separator:a65e2925788da723aee15e26cfe5c4713"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-attribs" name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a7d391306bca0f22209fe4c45362f9cc2"><td class="memItemLeft" align="right" valign="top">static HandlerThread&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#a7d391306bca0f22209fe4c45362f9cc2">imageCallback</a> = new HandlerThread(&quot;imageCallback&quot;)</td></tr>
<tr class="separator:a7d391306bca0f22209fe4c45362f9cc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa10cfacdd972274c2a50f4eb8c4e6bcd"><td class="memItemLeft" align="right" valign="top">static Handler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#aa10cfacdd972274c2a50f4eb8c4e6bcd">image</a></td></tr>
<tr class="separator:aa10cfacdd972274c2a50f4eb8c4e6bcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2dca3923dbe1027e4528850b1a98d74"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00068.html#ab2dca3923dbe1027e4528850b1a98d74">started</a> = false</td></tr>
<tr class="separator:ab2dca3923dbe1027e4528850b1a98d74"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides a sample OpenGL context setup. This class also provides access to the OpenGL layer via C++. This functionality is provided by static methods that are implemented using Java Native Interface (JNI). </p>

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00043">43</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a968cf2168ec4c19054e456c59831a5c5" name="a968cf2168ec4c19054e456c59831a5c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a968cf2168ec4c19054e456c59831a5c5">&#9670;&#160;</a></span>OpenGLContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00068.html">OpenGLContext</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This constructor initializes a new OpenGLContext object. </p>

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00059">59</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00068_a968cf2168ec4c19054e456c59831a5c5_cgraph.png" border="0" usemap="#aa00068_a968cf2168ec4c19054e456c59831a5c5_cgraph" alt=""/></div>
</div>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aeee1b868be694de63220cbaa71677715" name="aeee1b868be694de63220cbaa71677715"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeee1b868be694de63220cbaa71677715">&#9670;&#160;</a></span>EditShadersEnableLut()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int EditShadersEnableLut </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to enable or disable the LUT in the edit shader.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>0 to disable the LUT, 1 to enable the LUT </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<a id="ad7af59c2ab92372b59d2542ee23b2243" name="ad7af59c2ab92372b59d2542ee23b2243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7af59c2ab92372b59d2542ee23b2243">&#9670;&#160;</a></span>EditShadersGetParameter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native float EditShadersGetParameter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>parameter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to get the value of parameters used by the edit shader.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameter</td><td>the parameter to get, provided as an index into the enumeration EffectParameters in EditShaders.h </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the value of the requested parameter </dd></dl>

</div>
</div>
<a id="a2806dc3e1a2e39d0ac2287b164c69bdd" name="a2806dc3e1a2e39d0ac2287b164c69bdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2806dc3e1a2e39d0ac2287b164c69bdd">&#9670;&#160;</a></span>EditShadersInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int EditShadersInit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>output_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>output_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>color_standard</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>input_colorspace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>output_colorspace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to initialize the edit shader.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">output_width</td><td>the width of the image </td></tr>
    <tr><td class="paramname">output_height</td><td>the height of the image </td></tr>
    <tr><td class="paramname">color_standard</td><td>the color standard, provided as an index into the enumeration eColorStandard in EditShaders.h </td></tr>
    <tr><td class="paramname">input_colorspace</td><td>the input color space, provided as an index into the enumeration eColorSpace in EditShaders.h </td></tr>
    <tr><td class="paramname">output_colorspace</td><td>the output color space, provided as an index into the enumeration eColorSpace in EditShaders.h </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<a id="a66e7550be96e542914927735c6021310" name="a66e7550be96e542914927735c6021310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66e7550be96e542914927735c6021310">&#9670;&#160;</a></span>EditShadersRelease()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int EditShadersRelease </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to release all edit shader textures and compositing data.</p>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<a id="a65e2925788da723aee15e26cfe5c4713" name="a65e2925788da723aee15e26cfe5c4713"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65e2925788da723aee15e26cfe5c4713">&#9670;&#160;</a></span>EditShadersSetCompositingImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int EditShadersSetCompositingImage </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to set the compositing bitmap to be applied in the edit shader. The bitmap must be provided as an array of bytes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>the bitmap to be applied during compositing </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<a id="ac09ad09d208b0de4bc3bc09c5076920d" name="ac09ad09d208b0de4bc3bc09c5076920d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac09ad09d208b0de4bc3bc09c5076920d">&#9670;&#160;</a></span>EditShadersSetParameter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int EditShadersSetParameter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>parameter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to set the value of parameters used by the edit shader.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameter</td><td>the parameter to set, provided as an index into the enumeration EffectParameters in EditShaders.h </td></tr>
    <tr><td class="paramname">val</td><td>the intended value of the parameter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<a id="aa95af2319ce76698314c6bced3927b82" name="aa95af2319ce76698314c6bced3927b82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa95af2319ce76698314c6bced3927b82">&#9670;&#160;</a></span>eglInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int eglInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to initialize EGL.</p>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00068_aa95af2319ce76698314c6bced3927b82_icgraph.png" border="0" usemap="#aa00068_aa95af2319ce76698314c6bced3927b82_icgraph" alt=""/></div>
</div>

</div>
</div>
<a id="afb3c1a51ce0e979ac3fc0aec7ce1a915" name="afb3c1a51ce0e979ac3fc0aec7ce1a915"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb3c1a51ce0e979ac3fc0aec7ce1a915">&#9670;&#160;</a></span>getImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Handler getImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gets a reference to the OpenGL context's image handler.</p>
<dl class="section return"><dt>Returns</dt><dd>the image handler </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00080">80</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>

</div>
</div>
<a id="aaf666bed1def7419d656c61176b0885d" name="aaf666bed1def7419d656c61176b0885d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf666bed1def7419d656c61176b0885d">&#9670;&#160;</a></span>processFrame()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static native int processFrame </td>
          <td>(</td>
          <td class="paramtype">HardwareBuffer&#160;</td>
          <td class="paramname"><em>inbuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HardwareBuffer&#160;</td>
          <td class="paramname"><em>opbuf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>JNI call to process a frame. By default, runs the edit shader and renders the output image.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inbuf</td><td>the HardwareBuffer containing the input image </td></tr>
    <tr><td class="paramname">opbuf</td><td>the HardwareBuffer where the output image will be rendered </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa10cfacdd972274c2a50f4eb8c4e6bcd" name="aa10cfacdd972274c2a50f4eb8c4e6bcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa10cfacdd972274c2a50f4eb8c4e6bcd">&#9670;&#160;</a></span>image</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Handler image</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00051">51</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>

</div>
</div>
<a id="a7d391306bca0f22209fe4c45362f9cc2" name="a7d391306bca0f22209fe4c45362f9cc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d391306bca0f22209fe4c45362f9cc2">&#9670;&#160;</a></span>imageCallback</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">HandlerThread imageCallback = new HandlerThread(&quot;imageCallback&quot;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00049">49</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>

</div>
</div>
<a id="ab2dca3923dbe1027e4528850b1a98d74" name="ab2dca3923dbe1027e4528850b1a98d74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2dca3923dbe1027e4528850b1a98d74">&#9670;&#160;</a></span>started</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean started = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00020_source.html#l00053">53</a> of file <a class="el" href="a00020_source.html">OpenGLContext.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00020_source.html">OpenGLContext.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.1-->
<!-- start footer part -->
<!-- This div is not default but moves the footer to the bottom of the page. -->
<div id="footer">
	<div id="nav-path" class="navpath">
		<!-- id is needed for treeview function! -->
		<ul>
			<li class="logo"><a href="https://www.dolby.com"> <svg
						version="1.1" id="Logo" xmlns="http://www.w3.org/2000/svg"
						xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
						viewBox="0 0 380 118.8"
						style="vertical-align: middle; fill: white;" xml:space="preserve"
						height="3em">
						<use href="#LogoPath" />
						</svg></a></li> <li class="navelem"><b>com</b></li><li class="navelem"><b>dolby</b></li><li class="navelem"><b>vision</b></li><li class="navelem"><a class="el" href="a00027.html">videoeditor</a></li><li class="navelem"><a class="el" href="a00068.html">OpenGLContext</a></li>
			<li class="footer">Generated on Wed Feb 15 2023 17:10:00 for Dolby Vision Content Editing for Third-Party Developers by&nbsp;Dolby Laboratories.<br>Confidential
				Information. &#169; 2011-2021 Dolby Laboratories, &#169; 2011-2021
				Dolby International AB. All rights reserved.
			</li>
		</ul>
	</div>
</div>
<svg style="display: none">
    <path id="LogoPath"
		d="M4.6,12.5h10.6c19.8,0,36,16.2,36,36s-16.2,36-36,36H4.6V12.5z
          M107,12.5H96.4c-19.8,0-36,16.2-36,36
          s16.2,36,36,36H107V12.5z
          M190.8,48.5c0,19.9-16.1,36-36,36h-26v-72h26C174.6,12.5,190.8,28.6,190.8,48.5z
          M179.9,48.5
          c0-13.8-11.3-25.1-25.1-25.1h-15.1v50.2h15.1C168.6,73.6,179.9,62.3,179.9,48.5z
          M246.2,59.6c0,13.8-11.2,25-25,25s-25-11.2-25-25
          s11.2-25,25-25S246.2,45.9,246.2,59.6z
          M236.3,59.5c0-8.2-6.8-15-15-15s-15,6.7-15,15c0,8.2,6.7,15,15,15
          C229.5,74.6,236.3,67.9,236.3,59.5z
          M253.3,84.5h10.9v-72h-10.9V84.5z
          M323.5,59.6c0,13.8-11.2,25-25,25c-5.3,0-10.2-1.7-14.3-4.5
          v4.4h-10.9v-72h10.9v26.7c4-2.8,9-4.5,14.3-4.5C312.3,34.7,323.5,45.9,323.5,59.6z
          M313.6,59.5c0-8.2-6.8-15-15-15
          c-6.6,0-12.3,4.3-14.3,10.3c-0.5,1.5-0.8,3.1-0.8,4.8c0,1.6,0.3,3.2,0.8,4.7c2,6,7.6,10.3,14.3,10.3
          C306.8,74.6,313.6,67.9,313.6,59.5z
          M363.5,34.7l-14.2,32l-14.2-32h-11.9l20.2,45.4c0,0-4.9,11.1-5,11.1c-1.3,2.9-4.8,4.3-7.7,3
          l-1.6-0.7l-4.4,9.9l0,0l0,0l0,0l3.8,1.7c7.1,3.2,15.5,0,18.6-7.2c0-0.1,25.8-57.8,28.3-63.2L363.5,34.7L363.5,34.7z" />
</svg>
</body>
</html>
